package week4;

public class Book {
    String bookname, author, press, copyrightdate;

    public Book(String name,String auth,String pre,String copyright){
        bookname = name;
        author = auth;
        press = pre;
        copyrightdate = copyright;
    }

    public void setBookname(String name){
        bookname = name;
    }
    public String getBookname() {
        return bookname;
    }

    public void setAuthor(String auth){
        author = auth;
    }
    public String getAuthor() {
        return author;
    }

    public void setPress(String pre){
        press = pre;
    }
    public String getCopyrightdate() {
        return copyrightdate;
    }

    @Override
    public String toString() {
        return "\tBooknme: " + bookname + "\n\tAuthor: " + author + "\n\tPress: " + press + "\n\tCopyrightdate: " + copyrightdate;

    }
}
